<?php
$this->breadcrumbs=array(
	'Folders',
);

$user = Yii::app()->user;
$x = OpenIdUser::model()->findByAttributes(array('email'=>$user->email));
if(in_array('ADMIN', $x->roles)):

	$this->menu=array(
		array('label'=>'Create Folder', 'url'=>array('create')),
		array('label'=>'Manage Folder', 'url'=>array('admin')),
	);
endif;
?>

<h1>Folders</h1>

<?php $this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
)); ?>
